package com.groupseven.happycampus.service;

import com.groupseven.happycampus.common.bo.BookBo;
import com.groupseven.happycampus.common.pojo.Book;
import com.groupseven.happycampus.common.vo.AuthorBarVo;
import com.groupseven.happycampus.common.vo.BookVo;
import com.groupseven.happycampus.common.vo.LayuiPageVo;
import com.groupseven.happycampus.common.vo.SpeciesPieVo;

import java.util.List;
import java.util.Map;

/**
 * @CreateTime: 2022-07-27 11:19
 * @author: bestzqw
 * @Description:
 */
public interface BookService {
    LayuiPageVo<Book> bookList(Map<String, String> params);

    int deleteAll(String idstr);

    int updateBook(Book book);

    int addBook(Book book);

    List<BookBo> bookExcelData(Book book);

    int addBooks(List<Book> list);

    List<AuthorBarVo> selectByAuthorBar();

    List<SpeciesPieVo> selectBySpeciesPie();

    List<BookVo> bookGroup();

    int borrowBook(Integer id);

    int restoreBook(Integer id);
}
